﻿using Astronergy.Model.Models;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Astronergy.Model.Validation
{
    public class SysAreaValidator:AbstractValidator<SysAreaEntity>
    {
        public SysAreaValidator() {
            RuleFor(t => t.AreaName).NotNull().NotEmpty().WithMessage("地区名称不能为空！");
        }
    }
}
